package com.jsmile.cloud.tradecenter.settle.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年12月19日 02:56:26
 */
@ApiModel
@Data
@TableName("t_settlement")
public class Settlement extends Model<Settlement> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "订单id")
    private String orderNo;
    @ApiModelProperty(value = "下单人")
    private Long userId;
    @ApiModelProperty(value = "受益人，平台用固定的userId")
    private Long benefitUserId;
    @ApiModelProperty(value = "账户id")
    private Long accountId;
    @ApiModelProperty(value = "订单总金额（单位：分）")
    private Long orderAmount;
    @ApiModelProperty(value = "订单成本（单位：分）")
    private Long orderCost;
    @ApiModelProperty(value = "订单利润（单位：分）")
    private Long orderProfit;
    @ApiModelProperty(value = "0-立即到账 1-收货后N天到账 2-月结")
    private Integer type;
    @ApiModelProperty(value = "结算比例")
    private String settlementPercent;
    @ApiModelProperty(value = "结算金额（单位：分）")
    private Long settlementAmount;
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "结算时间（一般7天后才结算）")
    private java.util.Date settlementTime;
    @ApiModelProperty(value = "商户ID")
    private Long tenantId;
    @ApiModelProperty(value = "结算状态：1：未达结算要求，2：待结算，3：结算中，4：已结算，5：不予结算")
    private Integer settleStatus;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "删除标记")
    private Integer delFlag;
    @ApiModelProperty(value = "0-可提现账户 1-不可提现账户")
    private Integer balanceType;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;
}
